package com.zhl.sharding_jdbc_study_demo.dao;

import com.zhl.sharding_jdbc_study_demo.pojo.Userinfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;

public interface UserinfoDAO {
    @Insert("insert into userinfo(name) values(#{name})")
    Integer add(Userinfo obj);

    @Select("select * from userinfo ")
    ArrayList<Userinfo> findAll();


}
